#define _CRT_SECURE_NO_WARNINGS  1
#pragma warning(disable:6031)

#include <stdio.h>

int main(void)
{
	int a = 0xff;
	int b = 0x00;
	int c = 0xAA;
	printf("%#x\n", a);
	printf("%#x\n", a & 0x02);
	printf("%#x\n", b);
	printf("%#x\n", b & 0x02); 
	printf("%#x\n", c);
	printf("%#x\n", c & 0x02);
	return 0;

}